import request from "@/utils/request";

// 查询列表
export function getList(data) {
  return request({
    url: "/knowledge/segment/page",
    method: "post",
    params: data,
  });
}
// add 列表
export function addList(data) {
  return request({
    url: "/knowledge/segment/add",
    method: "post",
    data: data,
  });
}
// update 列表
export function updateList(data) {
  return request({
    url: "/knowledge/segment/update",
    method: "post",
    data: data,
  });
}

// delete 列表
export function deleteList(data) {
  return request({
    url: "/knowledge/segment/dels?segmentIds="+data,
    method: "post",
  });
}
